﻿using System.Linq;
using System.Runtime.InteropServices;
using MessageLib.Frame;
using MessageLib.Frame.Base;

namespace VoiceMessager.Models
{
	public class ListItem
	{
		public string 时间 { get; set; }
		public string 动作 { get; set; }
		public string 类别 { get; set; }
		public string 校验 { get; set; }
		public  string 内容 { get; set; }

		private BaseFrame _baseFrame;
		public BaseFrame Frame
		{
			get { return _baseFrame; }
			set
			{
				_baseFrame = value;
				内容 = string.Join(" ", Frame.FrameData.Select(i => i.ToString("X2")));

			}
		}

	}
}